<?php 
$attributes = array('class' => 'email', 'id' => 'checknew');
echo form_open('adv_page/dels', $attributes);
?>    
    <input type="hidden" name="page" value="<?php echo (int)$page?>">
    <table class="admindata">
        <thead>
            <tr>
                <th colspan="7">
                    <input type="submit" onclick="return verify_del();" name="btn_submit" class="submit" value="Xóa">
                    Hiện có <?php echo $num?> <?php echo lang('adv_page');?> <?php echo $pagination?>
                    <div class="fr">
                       <!-- <a href="<?php echo site_url('city/add')?>">Thêm mới</a> -->
                    </div>
                </th>
            </tr>
            <tr>
                <th class="checkbox"><input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew')" /></th>
                <th ><?php echo lang('adv_page_code');?></th>
                <th ><?php echo lang('adv_page_name');?></th>
                <th ><?php echo lang('adv_page_description');?></th>
                <th class="publish" style="width: 90px;">Chức năng</th>
            </tr>                
        </thead>
        <?
        $k=1;
        foreach($list as $rs):?>
        <tr class="row<?php echo $k?>">
            <td><input type="checkbox" name="ar_id[]" value="<?php echo $rs->adv_page_id ?>"></td>
            <td><?php echo $rs->adv_page_code?></td>
            <td><?php echo $rs->adv_page_name?></td>
             <td><?php echo $rs->adv_page_description?></td>
            <td align="center">
                <?php echo icon_edit('adv_page/edit/'.$rs->adv_page_id)?>
                <span id="publish<?php echo $rs->adv_page_id?>"><?php echo icon_active("'adv_page'","'adv_page_id'",$rs->adv_page_id,$rs->bl_active)?></span>
                <?php echo icon_del('adv_page/del/'.$rs->adv_page_id.'/'.(int)$this->uri->segment(4))?>
            </td>
        </tr>
        <?
        $k=1-$k;
        endforeach;?>
        <tfoot>
            <td colspan="7">
                <input type="submit" class="submit" onclick="return verify_del();" name="btn_submit" value="Xóa">
                Hiện có <?php echo $num?> <?php echo lang('adv_page');?>  <?php echo $pagination?>
            </td>
        </tfoot>
    </table>  
<?php echo form_close()?>  
